<script setup lang="ts">
import { ref } from 'vue';
import ico1 from '@/assets/images/register/ico_1.png';

const show = ref(false);

defineExpose({
  open() {
    show.value = true;
  },
});
</script>
<template>
  <div class="GuidePag" v-if="show" @click="show = false">
    <div class="GuidePag-box">
      <div class="GuidePag-item">
        1、点击右上角
        <div class="mx-2"><van-icon name="weapp-nav" color="#fff" /></div>
        图标
      </div>
      <div class="GuidePag-item">
        2、选择
        <div :style="{ margin: '0 5px' }">
          <van-image width="20px" height="20px" :src="ico1"></van-image>
        </div>

        在浏览器中打开
      </div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.GuidePag {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.712);
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  .GuidePag-box {
    transform: translateY(-50px);
    .GuidePag-item {
      display: flex;
      justify-content: center;
      align-items: center;
      .icon {
        margin: 0 5px;
      }
    }
    .GuidePag-item + .GuidePag-item {
      margin-top: 20px;
    }
  }
}
</style>
